package com.shaozi.nc.mq.translation;

import com.shaozi.data.mq.business.base.MqConsts.UserType;
import com.shaozi.data.mq.business.base.SourceTypeConsts.OA.Attendance;
import com.shaozi.data.mq.business.bean.MQExchangeData;
import com.shaozi.data.mq.business.bean.MQExchangeRuleBean;
import com.shaozi.data.mq.business.bean.MQPushItem;

public class AttendancePushTranslation extends BaseOaPushTranslation {

	public AttendancePushTranslation() {

	}


	@Override
	protected int[] onUserType(MQExchangeData data) {
		MQExchangeRuleBean rule = (MQExchangeRuleBean) data.getRule();
		MQPushItem pushItem = rule.getPush();
		
		switch (pushItem.getSourceType()) {
		case Attendance.Rule_Update:
			return new int[] { UserType.User1, UserType.User2, UserType.User3 };

		default:
			break;
		}
		return super.onUserType(data);
	}
}
